/* ============================================================
   05-view.css
   Thematisch aufgeteilt aus default.css + SiTTsBlazor.css
   ============================================================ */

/* ---- aus default.css ---- */

.view-item {
    width: 100%;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background-color: #fff;
    border-top: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-left: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-right: var(--bs-card-border-width) solid var(--bs-card-border-color);
    padding: 3px 10px;
    box-sizing: border-box;
    margin-top: 10px;
    border-top-left-radius: var(--bs-card-border-radius);
    border-top-right-radius: var(--bs-card-border-radius);
    padding-top: 10px;
}



.vh-left {
    display: flex;
    flex-direction: column;
    /*    width: 70%;*/
}

.vh-user {
    display: flex;
    align-items: center;
}

    .vh-user img {
        margin-right: 5px;
    }

.vh-time {
    display: flex;
    font-size: 14px;
    justify-content: flex-start;
    text-align: left;
    margin-top: 5px;
    flex-direction: row;
}

.vhm-desc,
.timespan {
    font-size: .875rem;
    font-weight: bold;
    color: #4c4e4d;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.vhm-desc {
    justify-content: flex-end;
}

.vhm-addition {
    font-size: 10px;
    margin-left: 5px;
}

.vh-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
    align-items: flex-end;
}

    .vh-right .card-btn {
        margin-right: 10px;
    }

.vh-min {
    display: flex;
    font-size: 14px;
    justify-content: flex-end;
    margin-top: 0px;
    flex-direction: column;
}

    .vh-min div:first-child {
    }

.view-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #fff;
    border-top: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-left: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-right: var(--bs-card-border-width) solid var(--bs-card-border-color);
    padding: 0.5rem 10px;
    box-sizing: border-box;
    flex-direction: column;
}

.vb-activity,
.vb-intern {
    margin-top: 15px;
    width: 100%;
}

.vba-title,
.vbi-title {
    font-weight: bold;
}

    .vbi-title span {
        font-weight: normal;
        opacity: 0.7;
        font-size: 12px;
        color: #4c4e4d;
    }

.vba-desc,
.vbi-desc {
    min-height: 100px;
}

.view-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #fff;
    border-top: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-left: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-right: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-bottom: var(--bs-card-border-width) solid var(--bs-card-border-color);
    padding: 0.5rem 10px;
    box-sizing: border-box;
    flex-direction: row;
    margin-bottom: 10px;
    /*    border-bottom-left-radius: var(--bs-card-border-radius);
    border-bottom-right-radius: var(--bs-card-border-radius);*/
}

.vf-left,
.vf-right {
    display: flex;
    flex-direction: column;
}

.vf-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: right;
}

.vf-myThings,
.vf-help,
.vf-docu {
}

.vh-right .card-buttons {
}

.vh-right button {
    padding: .26rem .5rem !important;
    border-radius: .25rem;
    font-size: .75rem;
    margin: 0 .375rem 0 0;
    margin-right: 0.375rem;
    cursor: pointer;
    position: relative;
    display: inline-block;
    overflow: hidden;
    background-color: rgba(28, 48, 115) !important;
    color: #fff;
    font-weight: 500;
    transition: all .5s ease;
    margin-right: 10px;
}

.vf-helper-wrapper ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.vf-helper-wrapper .vf-helper-row-time {
    font-weight: normal;
    opacity: 0.7;
    font-size: 12px;
    color: #4c4e4d;
    color: red;
    font-weight: bold;
}


.vf-helper-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5rem 10px;
    box-sizing: border-box;
    background-color: #fff;
    padding-top: 20px;
    border-left: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-right: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-bottom: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-bottom-left-radius: var(--bs-card-border-radius);
    border-bottom-right-radius: var(--bs-card-border-radius);
}

.vf-myThings,
.vf-help {
    width: 48%;
}

    .vf-myThings li,
    .vf-help li {
        margin-bottom: 15px;
        border-bottom: 1px solid rgba(0,0,0,0.175);
        padding-bottom: 15px;
    }

.vf-myThings-title,
.vf-help-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.vf-helper-wrapper .vf-myThings,
.vf-helper-wrapper .vf-help {
    margin-bottom: 25px;
}

.vf-helper-row-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

.vf-helper-row-btn {
    white-space: nowrap;
    margin-left: 5px;
    color: rgba(28, 48, 115);
    font-size: 12px;
    cursor: pointer;
    transition: all .3s ease;
}

    .vf-helper-row-btn:hover {
        color: #009ee0;
        transition: all .3s ease;
    }

.vf-help-title li {
}

.vbi-desc-template:first-child {
    margin-top: 10px;
    margin-bottom: 10px;
}

.vbi-desc-template label input,
.vbi-desc-template div.btn,
.vbi-title input {
    margin-left: 5px;
}

.vba-desc textarea {
    min-height: 200px;
}

.view-body {
    position: relative;
}

.vh-row {
    position: relative;
}

.vh-item-panel.False {
    display: none;
}

.vh-item-panel {
    position: absolute;
    top: 0;
    right: 24px;
    width: 220px;
    height: 80px;
    box-sizing: border-box;
    padding: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: .25rem;
    border-top-right-radius: 0;
    z-index: 10;
}

/* ---- aus SiTTsBlazor.css ---- */
.vh-type .dropdown {
    min-width: 190px;
    text-align: left;
}

.view-item.True {
    margin-bottom: 100px;
}

    .view-item.True .view-header {
        padding: .75rem !important;
        border: 0;
        border-top: 1px solid #f3f3f3;
        border-radius: 0;
    }

    .view-item.True .view-body {
        border: 0;
        border-top: 1px solid #f3f3f3;
        border-bottom: 1px solid #f3f3f3;
        border-radius: 0;
    }

    .view-item.True .view-footer {
        border: 0;
        border-bottom: 1px solid #f3f3f3;
        border-radius: 0;
    }

    .view-item.True .vba-title,
    .view-item.True .vbi-title {
        font-size: .9375rem;
        font-weight: bold;
        color: #333335;
    }

.view-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-direction: column;
    background-color: #fff;
    padding: .75rem !important;
    border-top: 1px solid #f3f3f3;
    border-radius: 0;
    box-sizing: border-box;
    margin-top: 10px;
}

.vh-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 5px;
}

.vh-item-v2 {
    margin-right: 15px;
}

    .vh-item-v2.vf-security,
    .vh-item-v2.vh-template,
    .vh-item-v2.vf-status {
        margin-left: auto;
        margin-right: 0 !important;
    }

    .vh-item-v2 .timespan {
        min-width: 190px;
        font-size: unset;
        display: inline-block;
    }

    .vh-item-v2 input[type="datetime-local"] {
        margin: 0;
        padding: .21rem .5rem;
    }

    .vh-item-v2 .dropdown {
        margin-right: 0;
        min-width: 190px;
    }

.vh-right {
    flex-direction: row;
    margin-left: auto;
    align-items: center;
}

    .vh-right .card-btn {
        margin-top: 0;
    }

.view-header-v2 + .view-body {
    border-left: 0;
    border-right: 0;
}

    .view-header-v2 + .view-body .vba-desc {
        min-height: auto;
    }

.view-header-v2 ~ .view-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-left: 0;
}

.view-header-v2 ~ .vf-helper-wrapper {
    border-left: 0;
    border-right: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.view-header-v2 ~ .view-footer .vb-intern {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.view-header-v2 ~ .view-footer .vbi-desc {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
    min-height: 55px;
}

.view-header-v2 ~ .view-footer .vb-intern {
    margin-top: 0;
}

.view-header-v2 ~ .view-footer .vbi-desc .vbi-desc-template,
.view-header-v2 ~ .view-footer .vbi-desc .vbi-desc-template label {
    margin-right: 10px;
}

    .view-header-v2 ~ .view-footer .vbi-desc .vbi-desc-template .btn {
        padding: .26rem .5rem;
        border-radius: .25rem;
        font-size: .75rem;
        margin: 5px .375rem 0 0;
        cursor: pointer;
        position: relative;
        display: inline-block;
        overflow: hidden;
        background-color: rgba(28, 48, 115);
        color: #fff;
        font-weight: 500;
        transition: all .5s ease;
        margin-top: 0;
    }

        .view-header-v2 ~ .view-footer .vbi-desc .vbi-desc-template .btn:hover {
            background-color: rgb(0, 158, 224);
            transition: all .5s ease;
        }

.view-header-v2 ~ .view-footer .vbi-desc input {
    transition: background-color 0.3s ease;
    color: #4B5675;
    padding: .26rem .5rem;
    border-radius: .25rem;
    border: 1px solid #ccc;
}

.vhm-desc {
    min-height: 33px;
}

.vf-extra.customsfield-quick-item {
    padding-top: 0 !important;
}

    .vf-extra.customsfield-quick-item .RB-row {
        margin-bottom: 0 !important;
    }

/* ---- Beschreibung einklappen ("Mehr anzeigen") ---- */
.desc-clamp {
    position: relative;
    max-height: 350px;
    overflow: hidden;
    transition: max-height .2s ease;
}

    .desc-clamp.expanded {
        max-height: none;
    }

    /* Fade am unteren Rand, solange eingeklappt */
    .desc-clamp:not(.expanded)::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 48px;
        background: linear-gradient(rgba(255,255,255,0), #fff);
        pointer-events: none;
    }

.desc-more-btn {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: #009ee0;
    cursor: pointer;
    user-select: none;
}

    .desc-more-btn:hover {
        text-decoration: underline;
    }
/*NEU bzgl. Status */
.task-edit-actions {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 20px;
}

.task-status-field .vht-title {
    width: 100%;
    margin: 0 0 4px 0;
    font-size: 12px;
    font-weight: normal;
    line-height: 14px;
    color: #6c757d;
    text-align: left;
}


.task-edit-button-group {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

    .task-edit-button-group .card-btn {
        margin: 0;
        height: 29px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }

    .task-edit-button-group button.card-btn {
        margin: 0;
    }
